package com.lnt.spring.bean;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

/**
 * @title : 销毁流程
 * @createDate : 2021-11-18 16:22
 * @creater : LuNanTing
 * @className : Destroy
 */
@Component
public class DestroyTest implements DisposableBean {

    @Override
    public void destroy() throws Exception {
        System.out.println("=================================");
        System.out.println("============[bean 销毁]============");
    }
}
